package com.wei.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import javax.persistence.*;

//  `g_id` INT(11) NOT NULL AUTO_INCREMENT,
//  `g_name` VARCHAR(255) DEFAULT NULL,
//  `g_des` VARCHAR(255) DEFAULT NULL,
//  `g_price` DECIMAL(10,2) DEFAULT NULL,
//  `g_discount` DOUBLE DEFAULT NULL,
//  `g_pic` VARCHAR(255) DEFAULT NULL,
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name=("s_good"))
public class Tb_goods {
    @Id
    @Column(name = "g_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "g_name")
    private String gname;

    @Column(name = "g_des")
    private String gdes;

    @Column(name = "g_price")
    private Double gprice;

    @Column(name = "g_discount")
    private  Double gdiscount;

    @Column(name = "g_pic")
    private String gpic;

}
